﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DroidClaimBL.Dto;

namespace DroidClaimBL
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IDroidClaimBL" in both code and config file together.
    [ServiceContract]
    public interface IDroidClaimBL
    {
        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)
            // UriTemplate = "/AuthenCustomer?LicensePlate={AuthenCustomer.LicensePlate}&Password={AuthenCustomer.Password}")]
           ]
        AuthenCustomerResultDto AuthenCustomer(AuthenCustomerDto AuthenCustomer);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)]
        ClaimRequestResultDto AddClaimRequest(ClaimRequestDto ClaimRequest);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)]
        List<ClaimInfoDto> GetAllClaimInfoForCustomer(SessionPkDto SessionPk);

        [OperationContract]
        [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json,
           RequestFormat = WebMessageFormat.Json,
           BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        bool Logout(SessionPkDto SessionPk);


        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)]
        CustomerDto GetCustomer();

        AuthenSurveyorResultDto AuthenSurveyor(AuthenSurveyorDto AuthenSurveyor);
        UpdateSurveyorStatusResultDto UpdateSurveyorStatus(SurveyorStatusDto Status);
        UpdateSurveyorLocationResultDto UpdateSurveyorLocation(SurveyorLocationDto Status);
        SurveyorLocationResultDto GetSurveyorLocation(ClaimInfoPKDto CliamInfoPk);
        ClaimInfoForSurveyorResultDto GetClaimInfoForSurveyor(ClaimInfoPKDto CliamInfoPk);
        DenyMessageResultDto SendDenyMessage(DenyMessageDto DenyMessage);
        ClaimIdResultDto UpdateClaim(UpdateClaimInfoDto UpdateClaimInfo);
    }
}
